<%-- 
    Document   : NEstadoPersona
    Created on : 27-ago-2013, 15:11:46
    Author     : pavel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Expires" content="0"/>
        <meta http-equiv="Pragma" content="no-cache"/> 
        <title>::Sistema de Registros Civiles::</title>
         <link rel='stylesheet' href='/RegCivil/css/estilos.css'>
         <script src='/RegCivil/js/jquery-2.0.2.js'></script>
        <script src='/RegCivil/js/funciones.js'></script>
        <script src='/RegCivil/js/returnmain.js'></script>
        <script type="text/javascript">
         {
         if(history.forward(1))
         location.replace(history.forward(1))
         }
</script>
    </head>
<SCRIPT LANGUAGE="JavaScript"> 
    function afirmacion() 
    { 
        open('/RegCivil/jsp/LtipoNacionalidad.jsp','Sizewindow', 'width=450,,height=300status=yes,menubar=0,scrollbars=0,toolbar=no,location=0,directories=0,left=400,top=310,resizable=no,border=1px')
    } 
</SCRIPT>    
    <body>
        <form action="${pageContext.request.contextPath}/MantenimientoTipoEstadoPersona" method="POST" name="" class="contacto">
        <table align="center" border="0" cellspacing="0" cellpadding="0">
            <tr><td>                    
                    <fieldset style="alignment-baseline: central">
                        <legend style="border: 1px solid #dce0e3;background-color: #edf1f5">
                            REGISTRO DE NUEVO ESTADO PERSONA</legend>
                    <table>
                    <tr><td><label/>Cod. Estado Persona</td>
                        <td><input type="text" name="codestper" size="2" style="width: 3.0em" maxlength="1">
                            <a href="#" onclick="afirmacion()">Ver lista de Estado Persona</a>
                        </td>
                    </tr>
                    <tr>
                        <td><label/>Nombre de EStado Persona</td>
                        <td><input type="text" name="nomestper" class="departamento" ></td>
                    </tr>
                    </table>
                    </fieldset>
              </td></tr>
                        <tr>
                            <td colspan="4">
                                <div align="center">                  
                                <fieldset style="alignment-baseline: central; height: 4em">
                                    <legend style="border: 1px solid #dce0e3;background-color: #edf1f5">BOTONES DE MANTENIMIENTO</legend>
                                        <table>
                                        <tr>
                                            <td><button type="submit" name="btn1" value="guardarEP"  class="boton">Guardar</button></td>
                                            <td><button type="reset" name="btn1" value="cancelar">Cancelar</button></td>
                                            <td><button type="button" name="btn1" value="salir" onclick="main()" >Salir</button></td>
                                        </tr>
                                        </table>
                                </fieldset>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                        <%String msj=(String)request.getAttribute("msj");
                       if(msj!=null)
                       {
                        if(msj=="0"){%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #e9ffed;border:1px solid #a2dcad">
                                <legend style="border-radius: 10px 10px 10px 10px; background-color: #e9ffed;border:1px solid #a2dcad"><img src="/RegCivil/imagenes/info.png"></legend>
                                <label>Alamcenamiento Satisfactorio</label>
                            </fieldset>
                        </div>
                        <%}else{%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269">
                                <legend style="border-radius: 10px 10px 10px 10px; background-color: #fff5f6;border:1px solid #f57269"><img src="/RegCivil/imagenes/exclamation.png"> </legend>
                                <label>Error en almacenar datos del estado</label>
                            </fieldset>
                        </div>
                        <%}%>
                        <%}else{%>
                        <div>
                            <fieldset style="border-radius: 10px 10px 10px 10px; background-color: #fffbe7;border:1px solid #ffe954">
                                <label style="color:#edd00c ">Informacion de Almacenamiento</label>
                            </fieldset>
                        </div>
                        <%}%>
                        </td>
                        </tr>
        </table>
    </form>
    </body>
</html>